package com.wzzc.dao;

import com.wzzc.bean.Student;
import com.wzzc.bean.StudentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface StudentMapper {
    long countByExample(StudentExample example);

    int deleteByExample(StudentExample example);

    int insert(Student record);

    int insertSelective(Student record);

    List<Student> selectByExample(StudentExample example);

    int updateByExampleSelective(@Param("record") Student record, @Param("example") StudentExample example);

    int updateByExample(@Param("record") Student record, @Param("example") StudentExample example);
    
    /**
     * 添加学生不如不存在
     * @param student
     * @return
     */
	int insertIfUnExistsByNo(Student student);

	/**
	 * 查询所有班级
	 * @return
	 */
	List<String> selectAllClass();

	/**
	 * 查询班级开启镜像的学生用户名
	 */
	List<String> selectNameByClassname(String className);
}